public class ArrayDemo3 {
    public static void main (String [] args) {
        String [][] books = {
                {"B001", "Java 编程基础", "10"},
                {"B002", "数据结构与算法", "15"},
                {"B003", "数据库原理", "20"}
        };
        System.out.println ("图书编号 \t 书名 \t\t 借阅次数");
        System.out.println ("---------------------------");
        for (int i = 0; i < books.length; i++) {
            for (int j = 0; j < books [i].length; j++) {
                System.out.print (books [i][j] + "\t");
            }
        System.out.println (); // 换行
        }
    }
}
